package c5.e25;
import java.time.LocalDate;
import java.time.Period;
public class e25 {
    public static void main(String[] args) {
        LocalDate birthday =LocalDate.of(2018,12,12);
        LocalDate now = LocalDate.now();
        Period between =Period.between(birthday,now);
        System.out.println("时间间隔为"+between.getYears()+"年");
        System.out.println("时间间隔为"+between.getMonths()+"月");
        System.out.println("时间间隔为"+between.getDays()+"日");
    }
}
